package com.diancan.modules.user.user;

import com.diancan.common.BaseService;
import com.diancan.domain.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService extends BaseService<UserMapper, User> {
    private final UserMapper userMapper;

    public UserService(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public List<User> selectAllUser(){
        return userMapper.selectAllUser();
    }

    public User login(String name, String password){
        return userMapper.login(name, password);
    }
}
